<?php
namespace app\index\validate;

use think\Validate;




class LoginVal extends Validate {
	 protected $rule = [
        'username'  =>  'require|max:12',
        'password'   => 'require|max:12',
        'validate_code'   => 'require',
    ];
	protected $message  =   [
        'username.require' => '用户名不能为空',
        'username.max'=>'用户名不能大于12位',
        'password.require' => '密码不能为空',
        'password.max'=>'密码不能大于12位',
        'validate_code.require' =>'验证码不能为空'
    ];

}


?>